
***************************************************************************************************************
/*
THIS DO-FILE (CALLED FROM "GET_DATA_FOR_STRUCTURAL_ESTIMATION.DO"): creates appendix table 6
*/
***************************************************************************************************************

use "full_sample_long.dta", clear

*non-selected kids, selected kids
tabstat kage agegap kfemale kmarried kkids kownhome kincover35k keducLTHS keducHS kidworkNT kidworkPT kidnear coreside grandkidcare kwill kanyxfer* if kinw==1, by(selectedkid)
*only sample kids who actually provide some care
tabstat kage agegap kfemale kmarried kkids kownhome kincover35k keducLTHS keducHS kidworkNT kidworkPT kidnear coreside grandkidcare kwill kanyxfer* if selectedkid==1 & helphours_overall>0 & helphours_overall<.
by hhidpn kidid: gen firstobskid=(_n==1)
tab firstobskid selected

***************************************************************************************************************
